import request from '../request';

/**
 * 视频页导航列表
 * @param {} data 
 */
function groupList() {
  return request({
    url: "/video/group/list",
  });
}

function videoListByGroup(data) {
  return request({

    url: "/video/group",
    data: {
      ...data,
      cookie: wx.getStorageSync('cookie'),
    }
  });
}

/**
 *  获取视频播放地址
 * @param {*} data 
 */

function getVideoUrl(data) {
  return request({
    url: '/video/url',
    data
  });
}
/**
 *  获取视频详情
 * @param {*} data 
 */
function videoDetail(data) {
  return request({
    url: '/video/detail',
    data
  });
}

export {
  groupList,
  videoListByGroup,
  getVideoUrl,
  videoDetail
}